Add Laravel 11.x, 12.x, 13.x and PHP 8.3/8.4 support#88
Merged
Conversation
- orchestra/testbench: add ^9.0|^10.0|^11.0 for L11/L12/L13 - pestphp/pest: add ^2.0|^3.7 - pest-plugin-laravel: add ^2.0|^3.0 - nunomaduro/collision: add ^8.0 - nunomaduro/larastan: add ^3.0 - phpstan rules/phpunit: add ^2.0 - phpunit/phpunit: add ^11.0 - CI: expand matrix to L9-L13, PHP 8.1-8.4, carbon ">=3.8.4", actions/checkout v6 - CI: drop prefer-lowest, add --no-coverage - phpunit.xml.dist: remove deprecated PHPUnit 10+ attributes
Laravel 9 requires nesbot/carbon ^2.x; constraining to >=3.8.4 caused a dependency conflict. Use * for L9 which lets Composer resolve the correct Carbon 2.x version.
Laravel 10 uses Carbon 2.x, so the '*' wildcard avoids the Carbon 3 conflict. pest-plugin-laravel is redundant; Pest.php already applies uses(TestCase::class) from Orchestra Testbench.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
requirealready declaredilluminate/contracts ^13.0, but the dev dependencies and CI were stuck at Laravel 9/10 and PHP 8.1/8.2.composer.json (require-dev)
orchestra/testbench: add^9.0|^10.0|^11.0(L11/L12/L13)pestphp/pest: add^2.0|^3.7pestphp/pest-plugin-laravel: add^2.0|^3.0nunomaduro/collision: add^8.0nunomaduro/larastan: add^3.0phpstan/phpstan-deprecation-rules+phpstan/phpstan-phpunit: add^2.0phpunit/phpunit: add^11.0CI (run-tests.yml)
[8.1, 8.2]→[8.1, 8.2, 8.3, 8.4][9.*, 10.*]→[9.*, 10.*, 11.*, 12.*, 13.*]">=3.8.4"on all rows (fixes Windows PowerShell stripping^)prefer-loweststability, upgradesactions/checkoutto v6--no-coverageto prevent coverage warning from trippingfailOnWarning=truephpunit.xml.dist
backupStaticAttributes,convertErrorsToExceptions,convertNoticesToExceptions,convertWarningsToExceptions,stopOnFailure,beStrictAboutOutputDuringTests,verbose